package imagetowordload

import (
	"Go-by-Example/lib"
	"log"
)

//GetWord 获取图片中的文字
func GetWord(url string) error {
	base64, err := lib.Base64Load(url)
	if err != nil {
		return err
	}
	word, err := lib.BaiduAPIImageLoad([]string{base64})
	if err != nil {
		return err
	}
	log.Println(word)
	return nil
}
